# -*- coding: UTF-8 -*-
#coding=utf-8
#在文件中搜索字符串
def searchText(fileAllName,strArr):
    f1=None;
    f2=None;
    try:
        f1 = open(fileAllName, "r")
        i = 1
        while 1:
            line = f1.readline()
            if not line:
                break
            for sstr in strArr:
                if sstr in line:
                    print fileAllName
                    print "\""+sstr+"\"in\""+fileAllName+"\",line "+str(i)+"show.\n"
            i = i+1
    except Exception as err:
        print(err)
    finally:
        if(f1!=None):
            f1.close()
